package com.ruoyi.oa.mapper;

import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.oa.domain.OaProject;
import com.ruoyi.oa.domain.bo.OaProjectBo;
import com.ruoyi.oa.domain.vo.OaProjectVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 项目Mapper接口
 *
 * @author ruoyi
 * @date 2023-04-21
 */
public interface OaProjectMapper extends BaseMapperPlus<OaProjectMapper, OaProject, OaProjectVo> {
   List<String> getProjectName();

    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id"),
        @DataColumn(key = "userName", value = "user_id")
    })
    List<OaProjectVo> queryByCondition(OaProjectBo bo);
}
